//
//  HomeTableSectionView.m
//  Rail
//
//  Created by hychen on 2018/3/2.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "HomeTableSectionView.h"
#import "BMLineView.h"

@interface HomeTableSectionView ()

@property (nonatomic, strong) BMLineView *lineView;

@end

@implementation HomeTableSectionView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.lineView = [BMLineView lineViewWithFrame:CGRectZero];
    [self addSubview:self.lineView];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.lineView.frame = CGRectMake(0, self.frame.size.height-0.5, self.frame.size.width, 0.5);
}

- (IBAction)rightClick:(UIButton *)sender {
    if (self.BlockClickRight) {
        self.BlockClickRight();
    }
}

- (void)hideRightLabel {
    self.rightLabel.hidden = YES;
    self.arrowImage.hidden = YES;
    
}

+ (instancetype)sectionView {
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil] lastObject];
}

@end
